package bill

import (
	"crmeb-common/global"
	"math/big"
)

// MerchantBill 商户帐单表
type MerchantBill struct {
	global.BaseModel
	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户id"`

	Type string `json:"type" gorm:"column=type;comment:类型：pay_order-订单支付,refund_order-订单退款,settlement-结算"`

	LinkId int32 `json:"linkId" gorm:"column=link_id;comment:关联id"`

	OrderNo string `json:"orderNo" gorm:"column=order_no;comment:关联订单"`

	Uid int32 `json:"uid" gorm:"column=uid;comment:用户uid"`

	Pm int32 `json:"pm" gorm:"column=pm;comment:0 = 支出 1 = 获得"`

	Amount big.Float `json:"amount" gorm:"column=amount;comment:金额"`

	Mark string `json:"mark" gorm:"column=mark;comment:备注"`
}
